import { BasicFetchResult, BasicPageArgs } from '@/api/model/baseModel';

export interface DictType {
  id: string;
  name: string;
  code: string;
  status: string;
  createTime: string;
  remark: string;
}

export interface DictTypeItem {
  id: string;
  typeCode: string;
  name: string;
  value: string;
  status: string;
  sort: number;
  defaulted: string;
  createTime: string;
  remark: string;
}

export interface ItemLabel {
  label: string;
  value: string;
}

export interface ItemMap {
  key: string;
  value: ItemLabel[];
}

export type DictTypeParams = BasicPageArgs<DictType>;
export type DictTypeItemParams = BasicPageArgs<DictTypeItem>;
export type DictTypeList = DictType[];
export type DictTypeItemList = DictTypeItem[];
export type ItemMapList = ItemMap[];
export type PageDictTypeModel = BasicFetchResult<DictType>;
export type PageDictTypeItemModel = BasicFetchResult<DictTypeItem>;
